AcquireContainingPartProperties
TheAcquireContainingPartProperties
method should write into a storage unit the container properties this part associates with the specified embedded frame and then return the storage unit.
ODStorageUnit AcquireContainingPartProperties ( in ODFrame frame);
frame
- A reference to an embedded frame of this part.
- return value
- A reference to the storage unit that contains the container properties for the specified frame.
DISCUSSION
The part embedded in this part calls this method to request the container properties that this part associates with the embedded part's display frame.Before returning the storage unit object, your part's
AcquireContainingPartProperties
method should call the storage unit object'sAcquire
method. When the caller has finished using the returned storage unit object, it should call the storage unit object'sRelease
method.OVERRIDING
When you subclassODPart
, you can override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely. This method needs to be implemented only by container parts.EXCEPTIONS
kODErrCannotEmbed
- This part does not support embedding.
kODErrInvalidFrame
- The specified frame is not an embedded frame of this part.
SEE ALSO
TheODPart::ContainingPartPropertiesUpdated
method (page 490).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Adopting Container Properties" on page 114 in OpenDoc Programmer's Guide.
"Transmitting Your Container Properties to Embedded Parts" on page 125 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help